export const tableOption = {
  "border": true,
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "searchMenuSpan": 6,
  "column": [
    {
      "type": "input",
      "label": "id",
      "prop": "id",
      "addDisplay": false,
      "editDisplay": false,
      hide: true
    },
    {
      "type": "input",
      "label": "订单id",
      "prop": "orderid",
      detail: true
    },
    {
      "type": "input",
      "label": "商店id",
      "prop": "shopid",
      detail: true
    },
    {
      "label": "订单状态",
      "prop": "status",
      type: 'input',
      span: 24,
      value: '0',
      html: true,
      formatter: (val) => {
        let text = "未知"
        switch (parseInt(val.status)) {
          case 0:
            text = "已抢单"
            break;
          case 1:
            text = "已上传"
            break;
          case 2:
            text = "已完成"
            break;
          case 3:
            text = "审核打回"
            break;
          case 4:
            text = "弃单"
            break;
          case 5:
            text = "已过期"
            break;
        }
        return '<b style="color:red">' + text + '</b>'
      },
      "addDisplay": false,
      "editDisplay": false,
    },
    {
      "type": "input",
      "label": "返现金额",
      "prop": "returnmoney",
      detail: true

    },
    {
      "type": "input",
      "label": "达标金额",
      "prop": "money",
      detail: true

    },
    {
      "type": "input",
      // "label": "支付状态0未支付1已支付2退款中3退款成功",
      "label": "支付状态",
      "prop": "paystatus",
      "addDisplay": false,
      "editDisplay": false,
      detail: true
    },
    {
      "type": "input",
      "label": "抢单时间",
      "prop": "createtime",
      detail: true
    },
    {
      "type": "input",
      "label": "更新状态时间",
      "prop": "lastmodifiedtime",
      hide: true,
      "addDisplay": false,
      "editDisplay": false
    },
    {
      "type": "input",
      "label": "任务id",
      "prop": "taskid",
      hide: true,
      detail: true
    },
    {
      "type": "input",
      "label": "支付id",
      "prop": "payid",
      hide: true,
      "addDisplay": false,
      "editDisplay": false
    },
    {
      "type": "input",
      "label": "支付金额",
      "prop": "paymoney",
      hide: true,
      detail:true
    }
  ]
}
